﻿using System;
using System.Collections.Generic;

namespace MinimalistFoodStreet.BackEnd.Infrastructure.EFCore;

/// <summary>
/// 订单详情表
/// </summary>
public partial class OrderDetail
{
    /// <summary>
    /// r,u,d-编号
    /// </summary>
    public int OdId { get; set; }

    /// <summary>
    /// c,r-订单（引用orders）
    /// </summary>
    public int OdOrderId { get; set; }

    /// <summary>
    /// c,r-商品（引用goods)
    /// </summary>
    public int OdGoodId { get; set; }

    /// <summary>
    /// c,r-供应商(引用suppliers)
    /// </summary>
    public int OdSupplierId { get; set; }

    /// <summary>
    /// c,r-商品类别（引用dictionarys）
    /// </summary>
    public int OdGoodTypeId { get; set; }

    /// <summary>
    /// c,r,u,k-商品名称
    /// </summary>
    public string OdName { get; set; } = null!;

    /// <summary>
    /// c,r,u-商品价格
    /// </summary>
    public decimal OdPrice { get; set; }

    /// <summary>
    /// c,r,u-产品描述
    /// </summary>
    public string OdDescription { get; set; } = null!;

    /// <summary>
    /// c,r,u-封面图片
    /// </summary>
    public string OdPhoto { get; set; } = null!;

    /// <summary>
    /// c,r,u-商品规格
    /// </summary>
    public string OdSpecs { get; set; } = null!;

    /// <summary>
    /// c,r,u-是否直营
    /// </summary>
    public int OdIsDirectly { get; set; }

    /// <summary>
    /// c,r,u-生产日期
    /// </summary>
    public DateTime OdBirthday { get; set; }

    /// <summary>
    /// c,r,u-保质期
    /// </summary>
    public int OdExpiryday { get; set; }

    /// <summary>
    /// c,r,u-是否促销
    /// </summary>
    public int OdIsPromote { get; set; }

    /// <summary>
    /// c,r,u-促销价格
    /// </summary>
    public decimal? OdPromotePrice { get; set; }

    /// <summary>
    /// c,r,u-原本的数量
    /// </summary>
    public int OdCount { get; set; }

    /// <summary>
    /// c,r,u-原本的总价
    /// </summary>
    public decimal OdMoney { get; set; }

    /// <summary>
    /// c,r,u-接收的数量
    /// </summary>
    public int? OdReceivedCount { get; set; }

    /// <summary>
    /// c,r,u-接受的总价
    /// </summary>
    public decimal OdReceivedMoney { get; set; }

    public virtual Comment? Comment { get; set; }

    public virtual Good OdGood { get; set; } = null!;

    public virtual Dictionary OdGoodType { get; set; } = null!;

    public virtual Order OdOrder { get; set; } = null!;

    public virtual Supplier OdSupplier { get; set; } = null!;
}
